﻿<%@ Page MasterPageFile="~/toolbox.master" Language="C#" AutoEventWireup="true" CodeFile="artwork.aspx.cs"
    Inherits="artwork" %>

<asp:Content ContentPlaceHolderID="HeadPlaceHolder1" runat="server" ID="cpHeader">

<script type = "text/javascript" src = "js/jquery.blockUI.js"></script>
<link rel="stylesheet" type="text/css" href="shadowbox-3.0.3/shadowbox.css">
<script type="text/javascript" src="shadowbox-3.0.3/shadowbox.js"></script>
<script type="text/javascript">
    Shadowbox.init();
</script>
<script type = "text/javascript">
    function BlockUI(elementID) {
        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_beginRequest(function () {
            $("#dvGrid").block({ message: '<table style="vertical-align:top;" width="100%" height="30" align="center" ><tr><td style="color:white; font-family:Verdana;font-size:15px; vertical-align:top;font-weight:bold;">' +
     '<br /><br /><img src="images/loader.gif"/> </td><td style="vertical-align:top;height:30px;color:white; font-family:Verdana;font-size:15px; font-weight:bold;" ><br /><br /> Loading....</td></tr></table>',
                css: {},
                overlayCSS: { backgroundColor: '#000000', opacity: 0.6
                }
            });
        });
        prm.add_endRequest(function () {
            //window.location.hash = "floor plan";
            $("#" + elementID).unblock();
        });
    }
    $(document).ready(function () {

        BlockUI("dvGrid");
        BlockUI("dvGrid2");
        $.blockUI.defaults.css = {};

    });
</script> 
</asp:Content>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server" ID="cpBody">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

    <div id="navtxt" class="navtext" style="position:absolute; top:-100px; left:0px; visibility:hidden">
    </div>
    <%--<div>
    <asp:PlaceHolder ID="ph_orderList" runat="server"></asp:PlaceHolder>
    </div>--%>
     <div  class="clear"></div>
      <div class="property_box">
        <div class="floatright"><%--<img src="images/img01.jpg" alt="" title=""  />--%></div>
        <span class="property_title floatleft"><asp:Label ID="lblPropName" runat="server"></asp:Label>  </span><br />
        <br />
       <div id="divAddress" runat="server"></div>
        <%--Phone Number;&nbsp;&nbsp;&nbsp;&nbsp;02 12345678 <br />--%>
       <%-- <br />--%>
       <%-- <br />--%>
        <strong>Officer :</strong> <asp:Label ID="lblOfficerName" runat="server"></asp:Label>
        <div id="divNoFolder" style="padding-top:20px" class="intext" visible="false" runat="server">
        Files are not uploaded for this property
      </div></div>
      <div class="clear"></div>
      
      <div id="divFolder" runat="server" >
      <div class="floorplan_slides1" style="margin-top:5px;">
       <%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>--%>
            <div id="filter">
          <!-- Start: category-->
          <div style="border:1px solid #333; margin-bottom:5px;">
            <div class="technology"><strong>Files To Approve</strong></div>
            <div class="thelanguage">
                <div class="categorySelect droptb2">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                     <div id="dvGrid" style="vertical-align:top;">
                    <asp:DataList Width="100%" ID="dlFolder" runat="server" onitemdatabound="dlFolder_ItemDataBound">
                        <ItemTemplate>
                            <div class="approve1">
                                    <div class="property_title">
                                        <asp:Label ID="lblFolderName" CssClass="folder_name" Text='<%# Eval("FolderName") %>' runat="server"></asp:Label>
                                    </div>
                                     <div class="clear"></div>
                                    <div id="divScroll" runat="server" class="scroll" >
                                    <div id="divScroll2" runat="server" >
                                    <asp:DataList ID="dlFile"  onitemdatabound="dlFile_ItemDataBound" OnItemCommand="dlFile_ItemCommand" RepeatDirection="Horizontal" runat="server">
                                        <ItemTemplate>
                                            <div class="approve_box">
                                                <div class="approve_box1">
                                                    <a href="#" >
                                                        <div id="divFile" runat="server">
                                                        </div>
                                                         <asp:Label ID="lblFileName" runat="server" Visible="false" Text='<%# Eval("FilePath") %>'></asp:Label>
                                                        <asp:Label ID="lblFolderName" runat="server" Visible="false" Text='<%# Eval("FolderName") %>'></asp:Label>
                                                    </a>
                                                </div>
                                                <div class="floatleft">
                                                    <a title="Download" href="#"><asp:ImageButton ID="btnDownload" ImageUrl="images/icon_download.gif" AlternateText="Download" Text="Download" CommandArgument='<%# Eval("FilePath") %>' CommandName="Download" runat="server" />
                                                    </a>
                                                </div>
                                                <div class="floatleft pnd5left">
                                                    <a title="Approve" href="#">
                                                        <asp:ImageButton ID="btnApprove" AlternateText="Approve" ImageUrl="images/icon_approve.gif" Text="Approve" CommandArgument='<%# Eval("FilePath") %>' CommandName="Approve" runat="server" />
                                                    </a>
                                                </div>
                                                <div class="floatright"><img src="images/icon_pending.gif" alt="Pending" title="Pending" /></div>
                                            </div>
                                           
                                        </ItemTemplate>
                                    </asp:DataList>
                                    </div>
                                    </div>

                                    <div id="divMsg" class="intext" runat="server" visible="false" >
                                        <asp:Label ID="lblMsg" runat="server" Text="No Files To Approve"></asp:Label>
                                    </div>
                                </div>
                        </ItemTemplate>
                    </asp:DataList>
                    
                    </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
                    

                </div>
            </div>

             
            <div class="technology"><strong>Approved Files</strong></div>
            <div class="thelanguage">
                <div class="categorySelect droptb2">
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                    <div id="dvGrid2" style="vertical-align:top;">
                    <asp:DataList Width="100%" ID="dlApprovedFolder" runat="server" onitemdatabound="dlApprovedFolder_ItemDataBound">
                        <ItemTemplate>
                            <div class="approve1">
                                    <div class="property_title">
                                        <asp:Label ID="lblFolderName" CssClass="folder_name" Text='<%# Eval("FolderName") %>' runat="server"></asp:Label>
                                    </div>
                                    <div class="clear"></div>
                                    <div id="divScroll" runat="server" class="scroll" >
                                    <div id="divScroll2" runat="server" >
                                        <asp:DataList ID="dlApprovedFile"  OnItemCommand="dlFile_ItemCommand"  onitemdatabound="dlApprovedFile_ItemDataBound"  RepeatDirection="Horizontal" runat="server">
                                            <ItemTemplate>
                                                <div class="approve_box">
                                                    <div class="approve_box1">
                                                        <a href="#" >
                                                            <div id="divFile" runat="server">
                                                            </div>
                                                            <asp:Label ID="lblFileName" runat="server" Visible="false" Text='<%# Eval("FilePath") %>'></asp:Label>
                                                            <asp:Label ID="lblFolderName" runat="server" Visible="false" Text='<%# Eval("FolderName") %>'></asp:Label>
                                                        </a>
                                                    </div>  
                                                    <div class="floatleft">
                                                        <a title="Download" href="#"><asp:ImageButton ID="btnDownload" ImageUrl="images/icon_download.gif" AlternateText="Download" Text="Download" CommandArgument='<%# Eval("FilePath") %>' CommandName="Download" runat="server" />
                                                        </a>
                                                    </div>
                                                    <div id="divDisapprove" runat="server" class="floatleft pnd5left">
                                                        <a title="Disapprove" href="#">
                                                            <asp:ImageButton ID="btnDisApprove" AlternateText="Disapprove" ImageUrl="images/disapprove.gif" Text="Disapprove" CommandArgument='<%# Eval("FilePath") %>' CommandName="Disapprove" runat="server" />
                                                        </a>
                                                    </div>
                                                </div>  
                                            </ItemTemplate>
                                        </asp:DataList>
                                    </div>
                                </div>
                                 <div id="divMsg" class="intext" runat="server" visible="false" >
                                    <asp:Label ID="lblMsg" runat="server" Text="No Approved Files"></asp:Label>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:DataList>
                    </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
                </div>
            </div>
          </div>
          <!-- End: category-->
          <!-- Start: Seller type-->
          
        </div>
        <%--</ContentTemplate>
        </asp:UpdatePanel>--%>
      </div>
      </div>
      <div class="clear"></div>
      <div style="padding-top:5px;">
        <div class="floatleft" style="padding-right:5px;">
            <asp:ImageButton ID="btnSubmit" runat="server" ImageUrl="images/submit.jpg" 
                onclick="btnSubmit_Click" />
        </div>
        <%--<div class="floatleft"><img  src="images/email_proof.jpg" alt=""/></div>--%>
        <div class="floatright"> 
            <asp:ImageButton ID="btnBack" runat="server" ImageUrl="images/back.jpg" 
                onclick="btnBack_Click" />
        </div>
      </div>
    </form>

<%--<script language="javascript" type="text/javascript">
    window.location.hash = "DETAILS";
</script>--%>
</asp:Content>